package com.venusj.springcloud.service;

import org.springframework.stereotype.Component;

/**
 * Created By Administrator
 * User: VenusZ
 * Date: on 2020/3/24 22:35
 * Desc: 开启自动熔断降级
 */
@Component
public class FallBackMethodService implements PaymentHystrixService{
    public String paymentInfo_OK(Integer id) {
        return "---------FallBackMethodService fall back-paymentInfo_OK";
    }

    public String paymentInfo_ERROR(Integer id) {
        return "---------FallBackMethodService fall back-paymentInfo_ERROR";
    }
}
